package com.ruoyi.system.domain;

import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 安防上报
对象 security_report
 * 
 * @author ruoyi
 * @date 2021-07-22
 */
public class SecurityReport extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long srId;

    /** 类型 */
    @Excel(name = "类型")
    private String srType;

    /** 经度 */
    @Excel(name = "经度")
    private String srLon;

    /** 纬度 */
    @Excel(name = "纬度")
    private String srLat;

    /** 位置 */
    private String srLocation;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date srCreatetime;

    /** 内容描述 */
    @Excel(name = "内容描述")
    private String srDescription;
    private List<SecurityActivity> securityActivities;

    /** 上报用户 */
    @Excel(name = "上报用户")
    private Long publicuserId;

    public void setSrId(Long srId) 
    {
        this.srId = srId;
    }

    public Long getSrId() 
    {
        return srId;
    }
    public void setSrType(String srType) 
    {
        this.srType = srType;
    }

    public String getSrType() 
    {
        return srType;
    }
    public void setSrLon(String srLon) 
    {
        this.srLon = srLon;
    }

    public String getSrLon() 
    {
        return srLon;
    }
    public void setSrLat(String srLat) 
    {
        this.srLat = srLat;
    }

    public String getSrLat() 
    {
        return srLat;
    }
    public void setSrLocation(String srLocation) 
    {
        this.srLocation = srLocation;
    }

    public String getSrLocation() 
    {
        return srLocation;
    }
    public void setSrCreatetime(Date srCreatetime) 
    {
        this.srCreatetime = srCreatetime;
    }

    public Date getSrCreatetime() 
    {
        return srCreatetime;
    }
    public void setSrDescription(String srDescription) 
    {
        this.srDescription = srDescription;
    }

    public String getSrDescription() 
    {
        return srDescription;
    }
    public void setPublicuserId(Long publicuserId) 
    {
        this.publicuserId = publicuserId;
    }

    public Long getPublicuserId() 
    {
        return publicuserId;
    }

    public List<SecurityActivity> getSecurityActivities() {
        return securityActivities;
    }

    public void setSecurityActivities(List<SecurityActivity> securityActivities) {
        this.securityActivities = securityActivities;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("srId", getSrId())
            .append("srType", getSrType())
            .append("srLon", getSrLon())
            .append("srLat", getSrLat())
            .append("srLocation", getSrLocation())
            .append("srCreatetime", getSrCreatetime())
            .append("srDescription", getSrDescription())
            .append("publicuserId", getPublicuserId())
            .toString();
    }
}
